package com.ruoyi.personnel.oa.sequence.mapper;

import com.ruoyi.personnel.oa.sequence.domain.ApproveSequence;
import com.ruoyi.personnel.oa.sequence.domain.ApproveSequenceCond;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 数据层
 */
public interface ApproveSequenceMapper {
    /**
     * 根据搜索条件所有审批顺序记录
     * @param cond 搜索条件
     * @return
     */
    List<ApproveSequence> selectSequenceList(ApproveSequenceCond cond);

    /**
     * 通过编号查询该编号的额审批顺序
     * @param approveType
     * @return
     */
    ApproveSequence selectSequenceById(String approveType);

    /**
     * 新增审批顺序
     * @param approveSequence
     * @return
     */
    int insertSequence(ApproveSequence approveSequence);

    /**
     * 修改审批顺序
     * @param approveSequence
     * @return
     */
    int updateSequence(ApproveSequence approveSequence);
}
